<?php

use Illuminate\Database\Seeder;

use Cartalyst\Sentinel\Laravel\Facades\Sentinel;

class RolesTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $role = Sentinel::getRoleRepository()->createModel()->create([
		    'name' => 'admin',
		    'slug' => '管理员',
		]);

        $role = Sentinel::getRoleRepository()->createModel()->create([
            'name' => 'user',
            'slug' => '用户',
        ]);
    }
}
